package Controller

import (
	"back_go/DAO/gorm"
	"back_go/DAO/gorm/GormModel"
	"back_go/Response"
	"github.com/gin-gonic/gin"
	"time"
)

// DeliveryList 配送列表
/*
	参数：无
	返回：配送列表
*/
func DeliveryList(c *gin.Context) {
	var db = gorm.Db
	var deliveryList []GormModel.TzDelivery
	db.Table("tz_delivery").Find(&deliveryList)

	c.JSON(200, Response.ResponseBody{
		Code:      "00000",
		Msg:       nil,
		Data:      deliveryList,
		Version:   "v1.0",
		Timestamp: time.Now().Unix(),
		Sign:      nil,
		Success:   true,
	})

}
